import request from '@/utils/request'

export interface loginParam {
  username: string
  password: string
}
export const loginApi = (obj: loginParam) => {
  return request({
    url: '/login',
    method: 'post',
    data: {
      userName: obj.username,
      passWord: obj.password
    }
  })
}
